package com.voucher.controller;

import com.alibaba.fastjson.JSON;
import com.voucher.entity.Context;
import com.voucher.entity.Data;
import com.voucher.entity.DataHolder;
import cn.hutool.http.HttpUtil;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class Test {
    public static void main(String[] args) {

//        tes();
        System.out.println(getCurrentDateTimeFormatted());
    }
    public  static void tes(){
            String str = "Â";
            char c = str.charAt(0);
            System.out.println("字符: " + c);
            System.out.println("Unicode值: " + (int)c);
    }
    public static String getCurrentDateTimeFormatted() {
        LocalDateTime now = LocalDateTime.now();
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        return now.format(formatter);
    }
}
